package controller;/**
 * Created by dell on 2020/4/18.
 */

import org.apache.catalina.servlet4preview.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @ClassName IndexController
 * @Description //TODO
 * @Author ljr
 * @Date 2020/4/18 11:40
 */
@Controller
public class IndexController {

    @RequestMapping("/")
    public String index(HttpServletRequest request,String username){
        request.setAttribute("username",username);
        return "index";
    }
}
